package com.ktjy.mapper;

import com.ktjy.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //查询方法
    List<SysUser> getUser();
    //添加
    int addUser(SysUser sysUser);
    //删除
    int deleteUser(SysUser sysUser);
    //查询单个
    SysUser selectByIdUser(SysUser sysUser);
    //修改SysUser
    int updateUser(SysUser sysUser);
    //登录验证
    SysUser selectAccount(SysUser account);
    //分页查询
    List<SysUser> pageUser(@Param("entity") SysUser sysUser, @Param("offset") Integer offset, @Param("rows") Integer rows);
    //查询总数
    Integer count(@Param("entity") SysUser entity);
}
